package com.jvyou.proxy.cglib;

import com.jvyou.proxy.Marry;
import com.jvyou.proxy.Spouse;

/**
 * @author 橘柚
 * @version 1.0-SNAPSHOT
 * @Date 2024/5/23 21:50
 * @Description 测试cglib代理
 */
public class CglibProxyDemo {

    public static void main(String[] args) {
        CglibProxy cglibProxy = new CglibProxy();
        // 注意cglib代理需要传入目标类，不能是接口
        Marry target = cglibProxy.getInstance(Spouse.class);
        target.marry();
    }

}
